import sys
from PyQt5.QtWidgets import QApplication
from ui.main_window import MainWindow
from ui.pdf_document import PdfDocument

def main():
    """应用程序入口点"""
    app = QApplication(sys.argv)
    pdf_doc = PdfDocument()  # 创建PDF文档处理实例
    window = MainWindow(pdf_doc)  # 创建主窗口
    window.show()
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()
